<?php
/**
 * Class GoodBase
 * @package App\Models\base
 * @date 2019-12-25
 */

namespace App\Models\base;


use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Models\base\GoodsBase
 *
 * @property int $goods_id
 * @property string|null $name
 * @property string|null $main_image_url
 * @property string|null $sku
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property string|null $deleted_at
 * @property int|null $status
 * @property int|null $cat_id
 * @property string|null $content
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\base\GoodsBase newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\base\GoodsBase newQuery()
 * @method static \Illuminate\Database\Query\Builder|\App\Models\base\GoodsBase onlyTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\base\GoodsBase query()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\base\GoodsBase whereCatId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\base\GoodsBase whereContent($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\base\GoodsBase whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\base\GoodsBase whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\base\GoodsBase whereGoodsId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\base\GoodsBase whereMainImageUrl($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\base\GoodsBase whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\base\GoodsBase whereSku($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\base\GoodsBase whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\base\GoodsBase whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Models\base\GoodsBase withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Models\base\GoodsBase withoutTrashed()
 * @mixin \Eloquent
 */
class GoodsBase extends ModelBase
{
    use SoftDeletes;

    protected $table ='goods';

    protected $primaryKey = 'goods_id';





    public $timestamps = true;





    protected $fillable = [
        'name',
        'main_image_url',
        'sku',
        'created_at',
        'updated_at',
        'status',
        'cat_id',
        'content'
    ];




}
